package com.ylxin.service;

import com.ylxin.entity.Book;
import com.ylxin.entity.Page;

import java.util.List;

/**
 * @author Hou
 * @version V1.0
 * @Project day42
 * @Package com.qf.service
 * @Description:
 * @Date 2022/5/12 10:48
 */
public interface BookService {
    List<Book> getAll();

    boolean addBook(Book book);

    boolean deleteBook(String bookId);

    Book getBook(String bookId);

    boolean updateBook(Book book);

    /**
     * 根据分页对象, 进行分页查询
     * @param page
     * @return
     */
    public List<Book> findAllPage(Page page);

    /**
     * 分页查询, 查询总记录数
     * @return
     */
    public int findAllPageCount();
}
